package cn.itcast.consumer.service;

import cn.itcast.consumer.pojo.Order;
import cn.itcast.consumer.pojo.User;
import org.springframework.stereotype.Service;

/**
 * @author 虎哥
 */
@Service
public class OrderService {

    public Order queryByUserId(User user) {
        if (user == null) {
            return null;
        }
        return new Order(110L, user.getId(), user.getName(), 179900L);
    }
}
